package com.whirl.basic.query;

import lombok.Data;

/**
 * @author xiaowei
 * @date 2022/6/27 13:49
 */
@Data
public class BaseQuery {
    //当前页码
    protected Long currentPage =1L;
    //每页条数
    protected Long pageSize=5L;
    //关键字
    protected String keyword;

    //获取开始索引
    public Long getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
